﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Function_Default : BasePage
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected override void OnInit(EventArgs e)
    {
        string controller = Server.UrlEncode(Request.QueryString["controller"]);
        switch (controller)
        {
            default:
                PlaceHolder1.Controls.Add(LoadControl(@"List.ascx"));
                break;
            case "create":
                PlaceHolder1.Controls.Add(LoadControl(@"Create.ascx"));
                break;
            case "edit":
                PlaceHolder1.Controls.Add(LoadControl(@"Edit.ascx"));
                break;
            case "createorupdate":
                PlaceHolder1.Controls.Add(LoadControl(@"CreateOrUpdate.ascx"));
                break;
            case "delete":
                PlaceHolder1.Controls.Add(LoadControl(@"Delete.ascx"));
                break;
        }
        base.OnInit(e);
    }
}

